import { secklist } from "@/request/api";
const state = {
    seckList : []
};
const getters = {
    getSeck(state){
        return state.seckList
    }
};
const mutations = {
    REQ_SECKLIST(state,payload){
        state.seckList = payload
    }
};
const actions = {
    getSeckAction({commit}){
        secklist().then(res=>{
            if(res.code==200){
                console.log(res,"res");
                commit('REQ_SECKLIST',res.list)
            }
        })
    }
};
export default {
    state,
    getters,
    mutations,
    actions,
    namespaced:true
}